/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="RECEITASPACIENTES")
public class ReceitasPacientesProteu implements Serializable{

    @Id
    @Column(name="RCP_ST_CODIGO")
    private String rcpStCodigo;
    @Column(name="AGD_ST_CODIGO")
    private String agdStCodigo;
    @Column(name="REC_ST_CODIGO")
    private String recStCodigo;
    @Lob
    @Column(name="REC_BL_RECEITA")
    private String recBlReceita;//blob
    @Column(name="PAC_ST_RG")
    private String pacStRg;
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo;
    @Column(name="RCP_DT_RECEITA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date rcpDtReceita;


    public String getAgdStCodigo() {
        return agdStCodigo;
    }

    public void setAgdStCodigo(String agdStCodigo) {
        this.agdStCodigo = agdStCodigo;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    public String getPacStRg() {
        return pacStRg;
    }

    public void setPacStRg(String pacStRg) {
        this.pacStRg = pacStRg;
    }

    public Date getRcpDtReceita() {
        return rcpDtReceita;
    }

    public void setRcpDtReceita(Date rcpDtReceita) {
        this.rcpDtReceita = rcpDtReceita;
    }

    public String getRcpStCodigo() {
        return rcpStCodigo;
    }

    public void setRcpStCodigo(String rcpStCodigo) {
        this.rcpStCodigo = rcpStCodigo;
    }

    public String getRecBlReceita() {
        return recBlReceita;
    }

    public void setRecBlReceita(String recBlReceita) {
        this.recBlReceita = recBlReceita;
    }

    public String getRecStCodigo() {
        return recStCodigo;
    }

    public void setRecStCodigo(String recStCodigo) {
        this.recStCodigo = recStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ReceitasPacientesProteu other = (ReceitasPacientesProteu) obj;
        if ((this.rcpStCodigo == null) ? (other.rcpStCodigo != null) : !this.rcpStCodigo.equals(other.rcpStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 23 * hash + (this.rcpStCodigo != null ? this.rcpStCodigo.hashCode() : 0);
        return hash;
    }

    

}
